package cn.itcast.ssh.dao;

import java.util.List;

import cn.itcast.ssh.domain.LeaveBill;

public interface ILeaveBillDao {

	/**
	 * 查询本人所有的请假单信息
	 * @return
	 */
	List<LeaveBill> findLeaveBillList();

	/**
	 * 保存/更新，请假申请
	 * @param leaveBill
	 */
	public void saveLeaveBill(LeaveBill leaveBill);

	/**
	 * 根据请假单ID查找请假单对象
	 * @param id
	 * @return
	 */
	public LeaveBill findLeaveBillById(Long id);

	/**
	 * 更新leaveBill
	 * @param leaveBill
	 */
	public void updateLeaveBill(LeaveBill leaveBill);

	/**
	 * 根据ID删除请假单记录
	 * @param id
	 * @return
	 */
	public void deleteLeaveBillById(Long id);

}
